﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Console  {

	public unsafe static string toString(void* data)
    {
        return new string((sbyte*)data);
    }

    internal static void WriteLine(string v)
    {
        Debug.Log(v);
    }
    internal static void WriteLine(string v,params object[] p)
    {
        Debug.LogFormat(v,p);
    }

    internal static unsafe void Write(string v, uint offset, byte* name)
    {
        UnityEngine.Debug.LogFormat(v, offset, toString(name));
    }

    internal static unsafe void Write(string v, params object[] param)
    {
        UnityEngine.Debug.LogFormat(v, param);
    }

    internal static void Write(string v, uint offset)
    {
        Debug.LogFormat(v, offset);
    }

    internal static void Write(string v)
    {
        Debug.Log(v);
    }

    internal static void Write(string v, sbyte name, sbyte mode, uint fpPtr)
    {
        
    }
}
